libglnx porting: Port away from gs_file_map_noatime()
authorColin Walters <walters@verbum.org>
Tue, 31 May 2016 15:27:19 +0000 (11:27 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 2 Jun 2016 14:52:40 +0000 (14:52 +0000)
The "no atime" thing was mostly useful only before "relative atime"
updates landed.  Users who care about performance will turn it off
entirely anyways.

Closes: #316
Approved by: jlebon

src/libostree/ostree-repo.c

index 2332d2bb66db0caf07f78d00564977869c981ce7..0d7ba1166a32e33391e99fbf3c59b3af85dad2ed 100644 (file)
@@ -4459,7 +4459,7 @@ sign_data (OstreeRepo     *self,
   if (!g_output_stream_close (tmp_signature_output, cancellable, error))
     goto out;
   
-  signature_file = gs_file_map_noatime (tmp_signature_file, cancellable, error);
+  signature_file = g_mapped_file_new (gs_file_get_path_cached (tmp_signature_file), FALSE, error);
   if (!signature_file)
     goto out;
   ret_signature = g_mapped_file_get_bytes (signature_file);